//
//  UIViewController+Extension.swift
//  SwiiftProject
//
//  Created by Apple on 2019/5/15.
//  Copyright © 2019 lazyloading. All rights reserved.
//

import Foundation
import UIKit

extension UIViewController{
    
    func push(_ vc : UIViewController!) -> Void{
        if self.navigationController == nil{ return}
        self.navigationController?.pushViewController(vc, animated: true);
    }
    
    func pop() -> Void {
        if self.navigationController == nil{ return}
        self.navigationController?.popViewController(animated: true);
    }
}
